home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / lib / H / access / ibit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  780 b   |  31 lines

  1. /*
  2.  * ibit.h --
  3.  *    POSTGRES index valid attribute bit map definitions.
  4.  *
  5.  * Identification:
  6.  *    $Header: /private/postgres/src/lib/H/access/RCS/ibit.h,v 1.7 1991/04/28 09:15:45 cimarron Exp $
  7.  */
  8.  
  9. #ifndef    IBitIncluded    /* Include this file only once. */
  10. #define IBitIncluded    1
  11.  
  12. #include "tmp/c.h"
  13. #include "utils/memutils.h"
  14.  
  15. typedef struct IndexAttributeBitMapData {
  16.     char    bits[(MaxIndexAttributeNumber + MaxBitsPerByte - 1)
  17.         / MaxBitsPerByte];
  18. } IndexAttributeBitMapData;
  19.  
  20. typedef IndexAttributeBitMapData    *IndexAttributeBitMap;
  21.  
  22. #define IndexAttributeBitMapSize    sizeof(IndexAttributeBitMapData)
  23.  
  24. /*
  25.  * IndexAttributeBitMapIsValid --
  26.  *    True iff attribute bit map is valid.
  27.  */
  28. #define    IndexAttributeBitMapIsValid(bits) PointerIsValid(bits)
  29.  
  30. #endif    /* !defined(IBitIncluded) */
  31.